package pe.edu.sistemas.postgrado.samupg.business.service.impl.marketing;

import javax.annotation.Resource;
import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import pe.edu.sistemas.postgrado.samupg.business.service.marketing.ComentarioService;
import pe.edu.sistemas.postgrado.samupg.domain.model.Comentario;
import pe.edu.sistemas.postgrado.samupg.repository.dao.ComentarioDAO;

/**
 *
 * @author Marlon
 */
@Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class ComentarioServiceImpl implements ComentarioService {

    @Resource
    private ComentarioDAO comentarioDAO;

    @Override
    public void crearComentario(Comentario comentario) throws DataAccessException {
        comentarioDAO.crearComentario(comentario);
    }
}
